package org.big.usermanager.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
// CreateUserRequest.java - 创建用户请求
@Data
public class CreateUserRequest {
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @Email(message = "邮箱格式不正确")
    private String email;
    @NotBlank(message = "密码不能为空")
    @Size(min = 8, message = "密码长度至少8位")
    private String password;
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    private String realName;
    private String avatarUrl;
    private Integer gender;
    private String birthday;
    private Integer roleId = 1;
    private String registerSource = "MOBILE_APP";
    private String inviteCode;
    private Long invitedBy;
}
